Skip to content

Conversation

@jjbayer
Copy link
Member

@jjbayer jjbayer commented May 3, 2024

SpanId is represented as a string internally, so if we construct it without going through Annotated::from_value, lowercase span IDs and uppercase span IDs will be treated as different. This is problematic in set_segment_attributes, which compares the span's ID to its segment ID.

We should probably represent SpanId as [u8; 8], or at least go through Annotated::from_value for all Otel types, but this PR should do as a quick fix.

#skip-changelog

@jjbayer jjbayer requested a review from a team as a code owner May 3, 2024 12:32
@jjbayer jjbayer requested a review from cleptric May 3, 2024 12:32
Copy link
Member

@Dav1dde Dav1dde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for [u8; 8]

@jjbayer
Copy link
Member Author

jjbayer commented May 3, 2024

+1 for [u8; 8]

I will follow-up in #3535.

@jjbayer jjbayer merged commit 4f59717 into master May 6, 2024
@jjbayer jjbayer deleted the fix/spans-case-sensitive branch May 6, 2024 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants